package com.ant.backstage.dao;

import com.ant.backstage.facade.model.FileInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* Created by Mybatis Generator 2022/01/20
*/
public interface FileInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FileInfo record);

    FileInfo selectByPrimaryKey(Integer id);

    List<FileInfo> selectAll();

    int updateByPrimaryKey(FileInfo record);

    List<Integer> selectFileByCondition(@Param("fileInfo") FileInfo fileInfo);

    List<FileInfo> selectByIds(@Param("fileIds")List<Integer> fileIds);

    void updateStatusById(@Param("id")Integer id,@Param("fileStatus") String fileStatus);

    Integer selectByName(@Param("fileName")String fileName);

}